﻿using System;

namespace Framework.Poco
{
    /// <summary>
    /// 二进制文件
    /// </summary>
    public class BinaryFile : NamedPoco
    {
        /// <summary>
        /// 文件类型
        /// </summary>
        public string Mime { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        public byte[] Data { get; set; }

        /// <summary>
        /// 数据长度
        /// </summary>
        public long Length { get; set; }

        /// <summary>
        /// 文件的排序
        /// </summary>
        public int Rank { get; set; }

        /// <summary>
        /// 文件简介
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 文件创建时间
        /// </summary>
        public DateTime Created { get; set; }
    }
}
